package io.renren.wh.merchant.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.wh.merchant.dao.CashDao;
import io.renren.wh.merchant.entity.CashEntity;
import io.renren.wh.merchant.service.CashService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("cashService")
public class CashServiceImpl extends ServiceImpl<CashDao, CashEntity> implements CashService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CashEntity> page = this.page(
                new Query<CashEntity>().getPage(params),
                new QueryWrapper<CashEntity>()
        );

        return new PageUtils(page);
    }

}
